home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 5141 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.5 KB  |  65 lines

  1. Path: Norway.EU.net!usenet
  2. From: patrick.hanevold@login.eunet.no (Patrick Hanevold)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Ceck out this bug. What the *** is SASC/6.56 doing?
  5. Date: 10 Mar 1996 05:43:08 GMT
  6. Organization: EUnet Norway
  7. Message-ID: <1120.6643T91T406@login.eunet.no>
  8. NNTP-Posting-Host: pc9.asker-pm2-1.eunet.no
  9. X-Newsreader: THOR 2.22 (Amiga;TCP/IP)
  10.  
  11.  
  12. Can anyone explain this? Try compiling this with a SC default SCOPTIONS
  13. file, and start it from CLI. It only crashes from CLI.
  14. This one was REALY fun finding. Dealyed ChunkyScreen a couple of days.
  15.  
  16. ///("Includes"
  17. #include    <hardware/cia.h>
  18. #include    <intuition/screens.h>
  19. #include    <proto/exec.h>
  20. #include    <proto/graphics.h>
  21. #include    <stdio.h>
  22. #include    <stdlib.h>
  23. ///)
  24.  
  25. #include    <proto/intuition.h>
  26.  
  27. //extern  struct  CIA     ciaa;
  28.  
  29. ///("CleanExit(void)"
  30. void CleanExit(void)
  31. {
  32.     exit(0);
  33. }
  34. ///)
  35. ///("Fail(char *output)"
  36. void Fail(char *output)
  37. {
  38.     printf(output);
  39. //    CleanExit();
  40. }
  41. ///)
  42.  
  43. #define ScreenWidth     160
  44. #define ScreenHeight    128
  45.  
  46. void main(void)
  47. {
  48.     int     x,y,n;
  49.     UBYTE   Buffer[ScreenWidth];
  50.     ULONG   Palette[256*3+2];           // This one causes the bug.
  51.  
  52.     struct  Screen  *Scr=OpenScreenTags(NULL,
  53.         SA_Width,           320,
  54.         SA_Height,          256,
  55.         SA_Depth,           8,
  56.         TAG_END);
  57.  
  58.     CloseScreen(Scr);
  59. }
  60.  
  61. <sb>Patrick Hanevold - Virtual Reality developer
  62. <sb>patrick.hanevold@login.eunet.no
  63. <sb>Amiga and official Be developer
  64.  
  65.